using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using HengTong.Model.Db.SupplyChain.Material;


namespace HengTong.ViewModel.SupplyChain.SysRawMaterialVms
{
    public partial class SysRawMaterialTemplateVm : BaseTemplateVM
    {
        [Display(Name = "名称")]
        public ExcelPropety NameExcel = ExcelPropety.CreateProperty<SysRawMaterial>(x => x.Name);
        [Display(Name = "编码")]
        public ExcelPropety CodeExcel = ExcelPropety.CreateProperty<SysRawMaterial>(x => x.Code);
        public ExcelPropety GroupCodeExcel = ExcelPropety.CreateProperty<SysRawMaterial>(x => x.GroupCode);
        public ExcelPropety UnitCodeExcel = ExcelPropety.CreateProperty<SysRawMaterial>(x => x.UnitCode);
        public ExcelPropety ModelExcel = ExcelPropety.CreateProperty<SysRawMaterial>(x => x.Model);
        [Display(Name = "详情")]
        public ExcelPropety DescriptionExcel = ExcelPropety.CreateProperty<SysRawMaterial>(x => x.Description);

	    protected override void InitVM()
        {
        }

    }

    public class SysRawMaterialImportVm : BaseImportVM<SysRawMaterialTemplateVm, SysRawMaterial>
    {

    }

}
